<?php

// +----------------------------------------------------
// | Name: 星空框架  用户验证规则
// +----------------------------------------------------
// | Version: V5.0
// +----------------------------------------------------
// | Author: xkyinzhe <zhonghuaxinxing@sina.cn>
// +----------------------------------------------------
// | Time： 2021-05-07 13：01
// +----------------------------------------------------
declare(strict_types=1);

namespace app\common\validate;

use app\common\model\User as UserModel;

use think\Validate;

/**
 * @xk 用户验证模型
 */
class UserLabel extends Validate
{
    protected $rule = [
    'user_label_id' => 'require|number',
    'user_label_name' => 'require',
  ];
    protected $message = [
    'user_label_id' => '用户标签id不能小于0',
    'user_label_name' => '用户标签不能为空',
  ];
  protected $scene = [
    'create' => ['user_label_name'],
    'edit' => ['user_label_id','user_label_name'],
  ];
}
